﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000065 RID: 101
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AetherDivideSpiritInfo : IMessage<AetherDivideSpiritInfo>, IMessage, IEquatable<AetherDivideSpiritInfo>, IDeepCloneable<AetherDivideSpiritInfo>, IBufferMessage
	{
		// Token: 0x17000142 RID: 322
		// (get) Token: 0x0600047C RID: 1148 RVA: 0x0000DBD3 File Offset: 0x0000BDD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AetherDivideSpiritInfo> Parser
		{
			get
			{
				return AetherDivideSpiritInfo._parser;
			}
		}

		// Token: 0x17000143 RID: 323
		// (get) Token: 0x0600047D RID: 1149 RVA: 0x0000DBDA File Offset: 0x0000BDDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AetherDivideSpiritInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000144 RID: 324
		// (get) Token: 0x0600047E RID: 1150 RVA: 0x0000DBEC File Offset: 0x0000BDEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AetherDivideSpiritInfo.Descriptor;
			}
		}

		// Token: 0x0600047F RID: 1151 RVA: 0x0000DBF3 File Offset: 0x0000BDF3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideSpiritInfo()
		{
		}

		// Token: 0x06000480 RID: 1152 RVA: 0x0000DC08 File Offset: 0x0000BE08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideSpiritInfo(AetherDivideSpiritInfo other) : this()
		{
			this.passiveSkill_ = other.passiveSkill_.Clone();
			this.spBar_ = ((other.spBar_ != null) ? other.spBar_.Clone() : null);
			this.exp_ = other.exp_;
			this.avatarId_ = other.avatarId_;
			this.cEGCJJLPDAL_ = other.cEGCJJLPDAL_;
			this.promotion_ = other.promotion_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000481 RID: 1153 RVA: 0x0000DC89 File Offset: 0x0000BE89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideSpiritInfo Clone()
		{
			return new AetherDivideSpiritInfo(this);
		}

		// Token: 0x17000145 RID: 325
		// (get) Token: 0x06000482 RID: 1154 RVA: 0x0000DC91 File Offset: 0x0000BE91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PassiveSkillItem> PassiveSkill
		{
			get
			{
				return this.passiveSkill_;
			}
		}

		// Token: 0x17000146 RID: 326
		// (get) Token: 0x06000483 RID: 1155 RVA: 0x0000DC99 File Offset: 0x0000BE99
		// (set) Token: 0x06000484 RID: 1156 RVA: 0x0000DCA1 File Offset: 0x0000BEA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpBarInfo SpBar
		{
			get
			{
				return this.spBar_;
			}
			set
			{
				this.spBar_ = value;
			}
		}

		// Token: 0x17000147 RID: 327
		// (get) Token: 0x06000485 RID: 1157 RVA: 0x0000DCAA File Offset: 0x0000BEAA
		// (set) Token: 0x06000486 RID: 1158 RVA: 0x0000DCB2 File Offset: 0x0000BEB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Exp
		{
			get
			{
				return this.exp_;
			}
			set
			{
				this.exp_ = value;
			}
		}

		// Token: 0x17000148 RID: 328
		// (get) Token: 0x06000487 RID: 1159 RVA: 0x0000DCBB File Offset: 0x0000BEBB
		// (set) Token: 0x06000488 RID: 1160 RVA: 0x0000DCC3 File Offset: 0x0000BEC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17000149 RID: 329
		// (get) Token: 0x06000489 RID: 1161 RVA: 0x0000DCCC File Offset: 0x0000BECC
		// (set) Token: 0x0600048A RID: 1162 RVA: 0x0000DCD4 File Offset: 0x0000BED4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CEGCJJLPDAL
		{
			get
			{
				return this.cEGCJJLPDAL_;
			}
			set
			{
				this.cEGCJJLPDAL_ = value;
			}
		}

		// Token: 0x1700014A RID: 330
		// (get) Token: 0x0600048B RID: 1163 RVA: 0x0000DCDD File Offset: 0x0000BEDD
		// (set) Token: 0x0600048C RID: 1164 RVA: 0x0000DCE5 File Offset: 0x0000BEE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Promotion
		{
			get
			{
				return this.promotion_;
			}
			set
			{
				this.promotion_ = value;
			}
		}

		// Token: 0x0600048D RID: 1165 RVA: 0x0000DCEE File Offset: 0x0000BEEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AetherDivideSpiritInfo);
		}

		// Token: 0x0600048E RID: 1166 RVA: 0x0000DCFC File Offset: 0x0000BEFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AetherDivideSpiritInfo other)
		{
			return other != null && (other == this || (this.passiveSkill_.Equals(other.passiveSkill_) && object.Equals(this.SpBar, other.SpBar) && this.Exp == other.Exp && this.AvatarId == other.AvatarId && this.CEGCJJLPDAL == other.CEGCJJLPDAL && this.Promotion == other.Promotion && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600048F RID: 1167 RVA: 0x0000DD90 File Offset: 0x0000BF90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.passiveSkill_.GetHashCode();
			if (this.spBar_ != null)
			{
				num ^= this.SpBar.GetHashCode();
			}
			if (this.Exp != 0U)
			{
				num ^= this.Exp.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.CEGCJJLPDAL != 0U)
			{
				num ^= this.CEGCJJLPDAL.GetHashCode();
			}
			if (this.Promotion != 0U)
			{
				num ^= this.Promotion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000490 RID: 1168 RVA: 0x0000DE3E File Offset: 0x0000C03E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000491 RID: 1169 RVA: 0x0000DE46 File Offset: 0x0000C046
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000492 RID: 1170 RVA: 0x0000DE50 File Offset: 0x0000C050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Promotion != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Promotion);
			}
			if (this.CEGCJJLPDAL != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.CEGCJJLPDAL);
			}
			if (this.Exp != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Exp);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.AvatarId);
			}
			this.passiveSkill_.WriteTo(ref output, AetherDivideSpiritInfo._repeated_passiveSkill_codec);
			if (this.spBar_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.SpBar);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000493 RID: 1171 RVA: 0x0000DF10 File Offset: 0x0000C110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.passiveSkill_.CalculateSize(AetherDivideSpiritInfo._repeated_passiveSkill_codec);
			if (this.spBar_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.SpBar);
			}
			if (this.Exp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Exp);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.CEGCJJLPDAL != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CEGCJJLPDAL);
			}
			if (this.Promotion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Promotion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000494 RID: 1172 RVA: 0x0000DFC4 File Offset: 0x0000C1C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AetherDivideSpiritInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.passiveSkill_.Add(other.passiveSkill_);
			if (other.spBar_ != null)
			{
				if (this.spBar_ == null)
				{
					this.SpBar = new SpBarInfo();
				}
				this.SpBar.MergeFrom(other.SpBar);
			}
			if (other.Exp != 0U)
			{
				this.Exp = other.Exp;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.CEGCJJLPDAL != 0U)
			{
				this.CEGCJJLPDAL = other.CEGCJJLPDAL;
			}
			if (other.Promotion != 0U)
			{
				this.Promotion = other.Promotion;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000495 RID: 1173 RVA: 0x0000E079 File Offset: 0x0000C279
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000496 RID: 1174 RVA: 0x0000E084 File Offset: 0x0000C284
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 16U)
					{
						this.Promotion = input.ReadUInt32();
						continue;
					}
					if (num == 24U)
					{
						this.CEGCJJLPDAL = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.Exp = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.AvatarId = input.ReadUInt32();
						continue;
					}
					if (num == 106U)
					{
						this.passiveSkill_.AddEntriesFrom(ref input, AetherDivideSpiritInfo._repeated_passiveSkill_codec);
						continue;
					}
					if (num == 114U)
					{
						if (this.spBar_ == null)
						{
							this.SpBar = new SpBarInfo();
						}
						input.ReadMessage(this.SpBar);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000195 RID: 405
		private static readonly MessageParser<AetherDivideSpiritInfo> _parser = new MessageParser<AetherDivideSpiritInfo>(() => new AetherDivideSpiritInfo());

		// Token: 0x04000196 RID: 406
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000197 RID: 407
		public const int PassiveSkillFieldNumber = 13;

		// Token: 0x04000198 RID: 408
		private static readonly FieldCodec<PassiveSkillItem> _repeated_passiveSkill_codec = FieldCodec.ForMessage<PassiveSkillItem>(106U, PassiveSkillItem.Parser);

		// Token: 0x04000199 RID: 409
		private readonly RepeatedField<PassiveSkillItem> passiveSkill_ = new RepeatedField<PassiveSkillItem>();

		// Token: 0x0400019A RID: 410
		public const int SpBarFieldNumber = 14;

		// Token: 0x0400019B RID: 411
		private SpBarInfo spBar_;

		// Token: 0x0400019C RID: 412
		public const int ExpFieldNumber = 10;

		// Token: 0x0400019D RID: 413
		private uint exp_;

		// Token: 0x0400019E RID: 414
		public const int AvatarIdFieldNumber = 12;

		// Token: 0x0400019F RID: 415
		private uint avatarId_;

		// Token: 0x040001A0 RID: 416
		public const int CEGCJJLPDALFieldNumber = 3;

		// Token: 0x040001A1 RID: 417
		private uint cEGCJJLPDAL_;

		// Token: 0x040001A2 RID: 418
		public const int PromotionFieldNumber = 2;

		// Token: 0x040001A3 RID: 419
		private uint promotion_;
	}
}
